@import "variables";
@import "mixins/mixins";

.api-docs-content {
  background-color: #fff;
  overflow: hidden;

}

.api-docs-tabs-content {
  padding: 50px 0;
  .sidebar-guess-like {
    width: 220px;
    float: right;
  }
}
.api-detail-content{
  @include clearfix;
  .single-price{
    font-style: normal;
  }
  .user-action-bar{
    margin-top: 20px;
    font-size: 0;
    text-align: center;
    .user-action-item{
      display: inline-block;
      padding: 0 15px;
      font-size: 12px;
      text-align: center;
      font-weight: bold;
      color: #999;
    }
    span{
      display: block;
    }
  }
  .api-pic-box{
    float: left;
    width: 260px;
    height: 270px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 2px rgba(0,0,0,.1);
    .pic{
      width: 150px;
      margin: 0 auto;
      overflow: hidden;
    }
    img{
      display: block;
      width: 100%;
    }
  }
  .api-detail-info{
    margin-left: 320px;
  }
  .api-title{
    font-size: 0;
    margin: 30px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    .title{
      display: inline-block;
      font-size: 22px;
      line-height: 1;
      margin: 0 20px 0 0;
      color: #555;
      vertical-align: bottom;
    }
    .tag{
      margin-right: 10px;
      vertical-align: bottom;
    }
  }
  .api-sub-title{
    margin:0 0 40px;
    color: #666;
  }
  .api-radio-group{
    margin-bottom: 20px;
  }
  .api-price-bar{
    height: 20px;
    line-height: 20px;
    margin-bottom: 20px;
    .price{
      font-size: 20px;
      color: #fb5b5b;
      margin-right: 10px;
    }
    .note{
      display: inline-block;
      font-size: 12px;
      color: #999;
      vertical-align: top;
    }
  }
  .api-actions{
    .el-btn{
      margin-right: 10px;
      vertical-align: top;
    }
  }
  .btn-collected{
    .iconfont{
      font-size: 14px;
      margin-right: 4px;
      vertical-align: top;
    }
  }
  .btn-download{
    .iconfont{
      font-size: 14px;
      margin-right: 4px;
      vertical-align: top;
    }
  }
}


.api-docs-header {
  height: 44px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  overflow: hidden;
  z-index: $api-docs-header-zindex;
  .el-btn-invoke {
    display: none;
    float: right;
    width: 120px;
    text-align: center;
    border-radius: 0;
    outline: none;
    height: 44px;
  }
  &.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow:1px 1px 3px rgba(0,0,0,.1);
    .el-btn-invoke {
      display: block;
    }
  }
  &-placeholder {
    height: 45px;
  }
}

.api-docs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  > li {
    float: left;
    line-height: 44px;
    box-sizing: border-box;
    > a {
      display: block;
      padding-top: 2px;
      line-height: 40px;
      color: $second-color;
      box-sizing: border-box;
      &:hover {
        color: $primary-color;
      }
    }
    & + li {
      margin-left: 100px;
    }
    &.active {
      > a {
        color: $primary-color;
        border-bottom: 2px solid $primary-color;
      }
    }
  }
}

.api-intro-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 240px;
  border-right: 1px solid #eee;
  overflow: hidden;
  > li {
    position: relative;
    padding-left: 20px;
    line-height: 28px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    > a {
      color: $second-color;
      &:hover {
        color: $primary-color;
      }
    }
    &.active {
      > a {
        color: $primary-color;
      }
      &:before {
        content: '';
        position: absolute;
        left: 3px;
        top: 14px;
        width: 5px;
        height: 5px;
        background-color: $primary-color;
        vertical-align: middle;
      }
    }
  }
}

.api-docs-tab-pane {
  display: none;
  padding-right: 20px;
  overflow: hidden;
  &.active{
    display: block;
  }
  .api-intro-nav {
    float: left;
    width: 190px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .api-intro-content {
    margin-left: 210px;
  }
  .api-intro-tab-pane_api {
    display: none;
    padding: 0 0 0 20px;
    &.active{
      display: block;
    }
  }
}

.api-intro-label-value {
  margin-bottom: 10px;
  overflow: hidden;
  .api-intro-label {
    display: block;
    float: left;
    width: 64px;
    font-size: 12px;
    color: #333;
    font-weight: bold;
  }
  .api-intro-value {
    margin-left: 74px;
    font-size: 12px;
    color: $second-color;
    overflow: hidden;
  }
}

.api-docs-titlebar{
  padding: 2px 0;
  margin-bottom: 15px;
}

.table-api{
  font-size: 12px;
  color: #666;
  border: 1px solid #eee;
  margin-bottom: 40px;
  >thead{
    >tr{
      >th,td{
        color: #999;
        font-weight: normal;
        padding: 6px 0;
        background-color: #fbfbfb;
        border-bottom: 1px;
      }
    }
  }
  >tbody{
    >tr{
      >th,td{
        padding: 6px 0;
      }
    }
  }
}
.table-code,.table-concat-us{
  font-size: 12px;
  color: #666;
  border: 1px solid #eee;
  margin-bottom: 40px;
  >thead{
    >tr{
      >th,td{
        color: #999;
        font-weight: normal;
        padding: 6px 0;
        //background-color: #fbfbfb;
        border-bottom: 1px;
      }
    }
  }
  >tbody{
    >tr{
      >th,td{
        padding: 6px 0;
      }
    }
  }
}


.pre-box{
  margin-bottom: 15px;
  pre{
    color: rgb(102, 102, 102);
    white-space: pre;
    line-height: 24px;
    font-family: 微软雅黑;
    padding: 20px 0px 20px 20px;
    margin: 10px 0px;
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(231, 231, 231);
    border-image: initial;
    border-radius: 4px;
    background: rgb(252, 252, 252);
    font-size: 12px;
  }
}